import request from '@/utils/request'

// 查询客户档案列表
export function listSaleCustomer(query) {
  return request({
    url: '/scm/saleCustomer/list',
    method: 'get',
    params: query
  })
}

// 查询客户档案详细
export function getSaleCustomer(id) {
  return request({
    url: '/scm/saleCustomer/' + id,
    method: 'get'
  })
}

// 新增客户档案
export function addSaleCustomer(data) {
  return request({
    url: '/scm/saleCustomer',
    method: 'post',
    data: data
  })
}

// 修改客户档案
export function updateSaleCustomer(data) {
  return request({
    url: '/scm/saleCustomer',
    method: 'put',
    data: data
  })
}

// 删除客户档案
export function delSaleCustomer(id) {
  return request({
    url: '/scm/saleCustomer/' + id,
    method: 'delete'
  })
}

// 导出客户档案
export function exportSaleCustomer(query) {
  return request({
    url: '/scm/saleCustomer/export',
    method: 'get',
    params: query
  })
}